package com.biostime.qdingding.modules.qd.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.qdingding.common.service.CrudService;
import com.biostime.qdingding.modules.qd.api.dto.VersionUpdateDto;
import com.biostime.qdingding.modules.qd.dao.AppVersionDao;
import com.biostime.qdingding.modules.qd.entity.AppVersion;

/**
 * 升级版本Service
 * @author king
 * @version 2015-11-05
 */
@Service
@Transactional(readOnly = true)
public class AppVersionService extends CrudService<AppVersionDao, AppVersion> {
	
	@Override
	public List<AppVersion> findList(AppVersion entity) {
		dataScopeFilter(entity, "dsf", "id=a.center_id", "id=a.create_by");
		
		return super.findList(entity);
	}
	
	
//	 <!-- ————————————————————————————楚河汉界，谁敢动我的，打死! ————————————————————————————————————--> 
	
	public List<VersionUpdateDto> apiGetVersion(String platform){
		return dao.apiGetVersion(platform);
	}
	
}
